package com.mode.prototype.pattern;

import java.util.List;

/**
 * @Description:
 * @Author: zyf
 * @Time: 2020/9/27 15:29
 */
public class InstanceDO implements Cloneable{

    private String name;

    private List<String> friends;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<String> getFriends() {
        return friends;
    }

    public void setFriends(List<String> friends) {
        this.friends = friends;
    }

    @Override
    public InstanceDO clone(){
        try {
            return (InstanceDO) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return null;
    }
}
